
function loading() {
	show_loadingpage();
}
var div_left = 0;
var div_right = 0;
var loading_constant = 0;
function move_loading() {
	var move_div = document.getElementById("move_div");
	var move_div_arry = new Array();
	move_div_arry[1] = document.getElementById("move_div1");
	move_div_arry[2] = document.getElementById("move_div2");
	move_div_arry[3] = document.getElementById("move_div3");
	move_div_arry[4] = document.getElementById("move_div4");
	move_div_arry[5] = document.getElementById("move_div5");
	if (div_left < 250) {
		move_div.style.left = div_left + "px";
		div_left += 5;
		div_right = 250;
	} else {
		if (div_right > -77) {
			for (i = 1; i < 6; i++) {
				move_div_arry[i].className = "move_div" + (6 - i);
			}
			move_div.style.left = div_right + "px";
			div_right -= 4;
		} else {
			div_left = -77;
			for (i = 1; i < 6; i++) {
				move_div_arry[i].className = "move_div" + i;
			}
		}
	}
}
function flicker_text() {
	var loading_text = document.getElementById("loading_text");
	if (loading_constant == 0) {
		loading_text.style.color = "#4e7f31";
		loading_constant = 1;
	} else {
		loading_text.style.color = "#000000";
		loading_constant = 0;
	}
}
function show_loadingpage() {
	var cover_div = document.createElement("div");
	cover_div.style.height = "100%";
	cover_div.style.width = "100%";
	cover_div.style.position = "absolute";
	cover_div.style.left = "0";
	cover_div.style.top = "0";
	cover_div.style.zIndex = "3000";
	cover_div.innerHTML = "<iframe scrolling=\"no\" frameborder=\"0\" width=\"100%\" height=\"100%\" style=\"z-index:3000;\"></iframe>";
	var cover_div2 = document.createElement("div");
	cover_div2.style.height = "100%";
	cover_div2.style.width = "100%";
	cover_div2.style.position = "absolute";
	cover_div2.style.left = "0";
	cover_div2.style.top = "0";
	cover_div2.style.zIndex = "3010";
	cover_div2.style.background = "#ffffff";
	//cover_div2.style.filter='alpha(opacity=10)';
	//cover_div2.style.opacity='0.1';
	var load_div = document.createElement("div");
	load_div.id = "load_div";
	load_div.style.height = "100%";
	load_div.style.width = "100%";
	load_div.style.position = "absolute";
	load_div.style.left = "0";
	load_div.style.top = "0";
	load_div.style.zIndex = "3100";	
	//load_div.style.textAlign='center';
	load_div.style.paddingTop = document.body.offsetHeight / 2 - 50 + "px";
	load_div.style.paddingLeft = document.body.offsetWidth / 2 - 100 + "px";
	document.body.appendChild(cover_div);
	document.body.appendChild(cover_div2);
	document.body.appendChild(load_div);
	load_div.innerHTML = "<div class=\"border_div\" id=\"border_div\"><div id=\"move_div\"><div class=\"move_div5\" id=\"move_div5\"></div><div class=\"move_div4\" id=\"move_div4\"></div><div class=\"move_div3\" id=\"move_div3\"></div><div class=\"move_div2\" id=\"move_div2\"></div><div class=\"move_div1\" id=\"move_div1\"></div></div></div><p id=\"loading_text\" style=\"margin:0 0 0 80px \">\u6b63\u5728\u52a0\u8f7d\u6570\u636e\uff0c\u8bf7\u7a0d\u5019......</p>";
	setInterval(move_loading, 50);
	setInterval(flicker_text, 500);
}


